package com.sanpu.kxe.business.main.bean;

import android.text.TextUtils;

import java.io.Serializable;

/**
 * Description：首页banner
 * Created by 薛勇军 on 2018/8/6.
 */

public class HomeBannerOutput implements Serializable {
    /** 图片地址 */
    private String image;

    /** 跳转到H5的动作 */
    private AppNative appNative;

    /** 跳转到H5的动作 */
    private AppUrl url;

    /** 标题 */
    private String title;

    /** 标签 以逗号分隔 */
    private String label;

    /** 商品id */
    private String goodsId;

    /** 跳转标签 native 跳原生 html 跳H5 */
    private String appOpenFlg;

    public class AppNative implements Serializable {

        /** ios跳转类 */
        private String ios;

        /** Android跳转路由 */
        private String android;

        public String getIos() {
            return ios;
        }

        public void setIos(String ios) {
            this.ios = ios;
        }

        public String getAndroid() {
            return android;
        }

        public void setAndroid(String android) {
            this.android = android;
        }
    }

    public class AppUrl implements Serializable {

        /** H5页是否带标题栏 0：表示有 */
        private String hasTitle;

        /** H5跳转链接 带域名 */
        private String url;

        /** 跳转时是否要带参 0：表示需要 */
        private String hasParameter;

        public boolean hasTitle() {
            return TextUtils.equals("0", hasTitle);
        }

        public String getHasTitle() {
            return hasTitle;
        }

        public void setHasTitle(String hasTitle) {
            this.hasTitle = hasTitle;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public boolean hasParameter() {
            return TextUtils.equals("0", hasParameter);
        }

        public String getHasParameter() {
            return hasParameter;
        }

        public void setHasParameter(String hasParameter) {
            this.hasParameter = hasParameter;
        }
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public AppNative getAppNative() {
        return appNative;
    }

    public void setAppNative(AppNative appNative) {
        this.appNative = appNative;
    }

    public AppUrl getUrl() {
        return url;
    }

    public void setUrl(AppUrl url) {
        this.url = url;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getAppOpenFlg() {
        return appOpenFlg;
    }

    public void setAppOpenFlg(String appOpenFlg) {
        this.appOpenFlg = appOpenFlg;
    }
}
